package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/4/8
 * \* Time: 19:49
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class Demo11 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("d:/a.txt")){
            writer.write("xzy");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}